package com.linln.modules.system.dao;

import com.github.pagehelper.Page;
import com.linln.modules.system.entity.BeautyProduct;
import com.linln.modules.system.entity.BeautyProductExample;
import com.linln.modules.system.entity.WxUser;
import com.linln.modules.system.vo.admins.AdminProductVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BeautyProductMapper {
    int countByExample(BeautyProductExample example);

    int deleteByExample(BeautyProductExample example);

    int deleteByPrimaryKey(String id);

    int insert(BeautyProduct record);

    int insertSelective(BeautyProduct record);

    List<BeautyProduct> selectByExample(BeautyProductExample example);

    BeautyProduct selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") BeautyProduct record, @Param("example") BeautyProductExample example);

    int updateByExample(@Param("record") BeautyProduct record, @Param("example") BeautyProductExample example);

    int updateByPrimaryKeySelective(BeautyProduct record);

    int updateByPrimaryKey(BeautyProduct record);

    Page<AdminProductVo> getAllProdPager(String name);

    Map<String, String> getSubInfo(@Param("id") String id);
}